The path to encryption

January 3, 2008 · 246 views · 0 comments

The path to encryption
taken by : Dedric Mauriac on Woodbridge (86, 25, 23)
blogHUD!
Text 2 Bytes
Simple Encryption
Weekday Script

About

Now that I'm looking into methods of encryption data for real (and ignoring XOR encryption), the first thing that that I needed to do was to get the ASCII values for each character in my message. LSL does not provide a direct way to do this. Instead, I got around it with the base64 methods. I first encode text to base64 with llStringToBase64. I manually decode the base64 string into a list of bytes (from 0 to 255). I do the reverse when converting bytes back to text. I encode each set of 3 bytes into base64, and then I use the LSL llBase64ToString to return the text value of the bytes. The scripts are free for anyone who is intersted. They are setting with all the other freebies in my shop. From Dedric Mauriac via blogHUD.com